-
Couldn't load subscription status.
- Fork 14
CLOUDP-301224: Generate README with IPA rules #451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| | Rule Name | Description | Severity | | ||
| | ---------------------------------------------- | ------------------------------------------------------------------------- | -------- | | ||
| | xgen-IPA-109-custom-method-must-be-GET-or-POST | The HTTP method for custom methods must be GET or POST. http://go/ipa/109 | warn | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Golink to internal site. Might be better to have actions self explanatory. Then downstream can link upstream instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO I think it's nice to have a link to the IPA itself for each rule, as it will show up when a validation fails. We do use golinks pretty widely in the openapi repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Proposed changes
Adds a script to generate a README file in
tools/spectral/ipa/rulesets. The file shows tables of all available rules (based on theipa-spectral.yamlruleset), and can be automatically updated when a new rule is added to the IPA validation by running:Also, a test is added to fail if the file is not updated, it looks like this when failed:
Jira ticket: CLOUDP-301224